/**
 * Created by luckyjing on 16/2/4.
 */
var index = require('../controllers/index.server.controller');
module.exports = function (app) {
    app.get('/', function (req, res) {
        if (!req.isAuthenticated()) {
            return res.redirect('/signin');
        } else {
            index.render(req, res);
        }
    });
    app.get('/value',(req,res)=>{
        if (!req.isAuthenticated()) {
            return res.redirect('/signin');
        } else {
            index.constant(req, res);
        }
    });
};